import http, { adornUrl } from '@/utils/http'

// 获取验证码
export function getCaptcha() {
  return http({
    url: adornUrl('/sys/captcha/get'),
    method: 'get',
    params: { t: new Date().getTime() }
  })
}

// 验证验证码
export function checkCaptcha(data) {
  return http({
    url: adornUrl('/sys/captcha/check'),
    method: 'post',
    data: http.adornData(data)
  })
} 